package com.yutel.multher.comm;

public class NumberUtil {

	/**
	 * 判断floatStr是否为零
	 * 
	 * @param floatStr
	 * @return 结果表示零、小于零、大于零
	 *
	 */
	public static int isZero(String floatStr) {
		try {
			if (floatStr == null) {
				return 0;
			}
			float fee = Float.parseFloat(floatStr);
			return Float.compare(fee, 0.0f);
		} catch (NumberFormatException e) {
			return 0;
		}
	}

}
